
<div id="main_wrap" class="grid_12">

    <div id="sidebar" class="grid_3 alpha">
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ornare mattis rhoncus. Morbi tincidunt,
            libero porttitor tempus aliquet, velit leo ullamcorper ipsum, quis viverra ipsum erat eget dui. Vivamus vehicula, nisi quis fringilla
            gravida,urna diam faucibus quam</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ornare mattis rhoncus. Morbi tincidunt,
            libero porttitor tempus aliquet, velit leo ullamcorper ipsum, quis viverra ipsum erat eget dui. Vivamus vehicula, nisi quis fringilla
            gravida,urna diam faucibus quam
        </p>
    </div><!-- end sidebar div-->

    <div id="main" class="grid_9 omega">
        <div id="reg_form">
            

            
            <?php
            $attributes = array('class' => 'form', 'id' => '');
            $username_data = array(
                'name' => 'username',
                'id' => 'username',
                'maxlength' => '12',
            );           
            $pass_data = array(
                'name' => 'pass',
                'id' => 'pass',
                'maxlength' => '12',
            );
            $pass_conf_data = array(
                'name' => 'passconf',
                'id' => 'passconf',
                'maxlength' => '12',
            );
             $firstname_data = array(
                'name' => 'fname',
                'id' => 'fname',
                'maxlength' => '25',
            );
            $lastname_data = array(
                'name' => 'lname',
                'id' => 'lname',
                'maxlength' => '25',
            );
            $email_data = array(
                'name' => 'email',
                'id' => 'email',
                'maxlength' => '40',
            );
            $tel_data = array(
                'name' => 'tele',
                'id' => 'tele',
                'maxlength' => '10',
            );
            

            echo form_open('form/registrera', $attributes); ?>
             
            <?php echo form_error('username'); ?>
            <p>Användarnamn:  <?php echo form_input($username_data); ?></p>
            <?php echo form_error('pass'); ?>
            <p>Lösenord: <?php echo form_password($pass_data); ?></p>
            <?php echo form_error('passconf'); ?>
            <p>Upprepa Lösenord: <?php echo form_password($pass_conf_data); ?></p>
            <?php echo form_error('fname'); ?>
            <p>Förnamn:  <?php echo form_input($firstname_data); ?></p>
            <?php echo form_error('lname'); ?>
            <p>Efternamn:  <?php echo form_input($lastname_data); ?></p>
            <?php echo form_error('email'); ?>
            <p>E-post: <?php echo form_input($email_data)?></p>
            <?php echo form_error('tele'); ?>
            <p>Telefon nr: <?php echo form_input($tel_data)?></p>
            <p><?php echo form_submit('registrera', 'Registrera')?></p>
            
        </div>
    </div><!-- end main div-->
</div>


